<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div></div>
    <p></p>
    <script>
        var div = document.querySelector('div');
        var p = document.querySelector('p');
        // 非标准
        div.innerText = '我需要<strong>治疗</strong>';
        // W3C标准
        p.innerHTML = '我需要<strong>治疗</strong>';
    </script>
</body>
</html>